<!DOCTYPE html>
<html lang="en">
<head>
    <!--    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>-->
    <title>博客管理</title>
    <meta http-equiv="Content-Type" content="application/x-javascript; charset=utf-8"/>
    <link rel="stylesheet" href="/static/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="/static/common/laydate/theme/default/laydate.css"/>
    <link href="/static/common/editor/css/editormd.css" rel="stylesheet"/>

    <script type="text/javascript" src="/static/layui/layui.js"></script>
    <script type="text/javascript" src="/static/js/jquery3.4.0.js"></script>
    <script type="text/javascript" src="/static/common/editor/editormd.min.js"></script>
    <script src="/static/common/editor/lib/marked.min.js"></script>
    <script src="/static/common/editor/lib/prettify.min.js"></script>
</head>
<script type="text/html" id="blogBar">
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detail_blog">查看</a>
    <a class="layui-btn layui-btn-xs auction-edit" lay-event="edit" id="edit_blog">编辑</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del_blog">删除</a>
</script>
<script type="text/javascript">
    // $(function () {
    //     editormd("mdEditor", {//注意1：这里的就是上面的DIV的id属性值
    //         placeholder: '欢迎使用',
    //         width: "90%",
    //         height: 640,
    //         syncScrolling: "single",
    //         path: "/static/common/editor/lib/",//注意2：你的路径
    //         saveHTMLToTextarea: true,//注意3：这个配置，方便post提交表单
    //         // 图片上传
    //         imageUpload: true,
    //         imageFormats: ["jpg", "jpeg", "gif", "png", "bmp", "webp"],
    //         imageUploadURL: "http://crawler_upload.6ack.com/upload/layedit"
    //     });
    // });
</script>
<body>
<div>
    <span style="float: left;font-size: 14px;padding-top: 7px">选择时间:</span>
    <input type="text" name="" id="blog_createTime" class="layui-input" placeholder="请选择时间"
           style="width: 250px ;float: left"
           readonly="readonly">
    <span style="float: left;font-size: 14px;padding-top: 7px;margin-left: 20px">博客标题:</span>
    <div class="layui-inline" style="float: left;">
        <input class="layui-input" name="id3" id="blog_Auctitle" autocomplete="off" placeholder="请输入博客标题">
    </div>
    <button class="layui-btn" id="blog_search" data-type="reload">
        <i class="layui-icon">&#xe608;</i> 搜索
    </button>
</div>
<table id="blogDataTable" lay-filter="dataTable"></table>
<!-- 博客修改界面 start-->
<div id="win-blog-update" style="display: none" class="layui-layout-body">
    <form class="layui-form" id="form-blog-update">
        <div class="layui-form-item">
            <label class="layui-form-label">博客标题</label>
            <div class="layui-input-block">
                <input type="text" name="" id="blog_title_update" placeholder="请输入" autocomplete="off"
                       class="layui-input"
                       value="">
            </div>
        </div>

        <label class="layui-form-label">允许评论</label>
        <div class="layui-input-block auc_auction_stage">
            <input type="radio" name="allow_comment" value="0" title="允许" checked="checked">
            <input type="radio" name="allow_comment" value="1" title="不允许">
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">博客类型</label>
            <div class="layui-inline">
                <select name="city" lay-filter="selFilter" lay-verify="" id="blog_category">
                    <option value="1">技术</option>
                    <option value="2">生活</option>
                    <option value="3">人物</option>
                    <option value="4">随谈</option>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">
                博客配图</label>
            <div class="layui-upload">
                <button type="button" class="layui-btn" id="imgupload">上传图片</button>
                <div class="layui-upload-list">
                    <img class="layui-upload-img" id="demo1">
                    <p id="demoText"></p>
                </div>
            </div>
        </div>
        <div>
            <input type="text" name="" id="blogId" class="layui-input" style="display: none">
        </div>

        <!--editor  start-->
        <div id="content-editormd" class="form-group">
            <textarea style="" class="form-control" id="content-editormd-markdown-doc"
                      name="content-editormd-markdown-doc"></textarea>
        </div>
        <!--editor  end-->
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button type="button" class="layui-btn" lay-submit lay-filter="*" id="blog_update">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary" id="blog_res_update">重置</button>
            </div>
        </div>
    </form>
</div>
<!-- 博客修改界面 end-->
<script type="text/javascript" src="/static/js/blog/blog.js"></script>

</body>
</html>
